package org.jdesktop.swingx.table.model;

import javax.swing.table.TableModel;

public class RowNumTableModelWapper extends AbstractAddColumnTableModelWapper {

	public RowNumTableModelWapper(TableModel t) {
		super(t,0);
	}

	@Override
	public Object getColumnValue(int rowIndex) {
		int ret=getRealRowNumber(rowIndex);
		return ret==-1?null:++ret;
	}

	@Override
	public String getColumnName() {
		return " ";
	}

	@Override
	public Class getColumnClass() {
		return Integer.class;
	}
	
	
}
